{template 'header'}
<div class="m0">
<div class="m">
<div class="im0">
<div class="im0l">
<!--[行业分类]-->
{php $mid = $moduleid;}
{php $c0 = get_maincat(0, $mid, 1);}
<ul>
{loop $c0 $k0 $v0}
{if $k0 < 9 && $v0[child]}
{php $_c1 = get_maincat($v0[catid], $mid, 2);}
{php $c1 = get_maincat($v0[catid], $mid);}
<li class="cate-{$k0}"><i>&gt;</i>
<a href="{$MOD[linkurl]}{$v0[linkurl]}" target="_blank"><strong>{$v0[catname]}</strong></a> 
{if $_c1}
<a href="{$MOD[linkurl]}{$_c1[0][linkurl]}" target="_blank"><strong>{$_c1[0][catname]}</strong></a>
{else}
<a href="{$MOD[linkurl]}{$c1[0][linkurl]}" target="_blank"><strong>{$c1[0][catname]}</strong></a>
{/if}
<div>
{loop $c1 $k1 $v1}
<dl>
<dt><a href="{$MOD[linkurl]}{$v1[linkurl]}" target="_blank">{set_style($v1[catname], $v1[style])}</a></dt>
{if $v1[child]}
{php $c2 = get_maincat($v1[catid], $mid);}
<dd>
{loop $c2 $k2 $v2}
{if $k2}<em>|</em>{/if}<a href="{$MOD[linkurl]}{$v2[linkurl]}" target="_blank">{set_style($v2[catname], $v2[style])}</a>
{/loop}
</dd>
{/if}
</dl>
{/loop}
</div>
</li>
{/if}
{/loop}
</ul>
</div>
<div class="im0m">
	<div>{ad(14)}</div>
</div>
<div class="im0r" style="background:rgb(0,121,194)">
	<div class="im0u" style="background:rgb(0,121,194)">
		<div class="user-info" style="background:rgb(0,121,194)">
		<script type="text/javascript">
		var destoon_uname = get_cookie('username');
		document.write('<a href="{$MODULE[2][linkurl]}avatar.php"><img src="'+DTPath+'api/avatar/show.php?size=large&reload={DT_TIME}&username='+destoon_uname+'"/></a>');
		document.write('<ul>');
		if(get_cookie('auth')) {
			document.write('<li><em><a href="{$MODULE[2][linkurl]}logout.php">退出</a></em><a href="{$MODULE[2][linkurl]}"><strong>Hi,'+destoon_uname+'</strong></a></li>');
		} else {
			if(destoon_uname) {
				document.write('<li><em><a href="{$MODULE[2][linkurl]}{$DT[file_login]}">登录</a></em><a href="{$MODULE[2][linkurl]}"><strong>Hi,'+destoon_uname+'</strong></a></li>');
			} else {
				document.write('<li><em><a href="{$MODULE[2][linkurl]}{$DT[file_register]}">注册</a></em><a href="{$MODULE[2][linkurl]}{$DT[file_login]}"><strong>Hi,请登录</strong></a></li>');
			}
		}
		document.write('<li><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}&action=add" class="b">会员中心</a><i>|</i><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}" class="b">我的订单</a><i>|</i><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}&job=answer" class="b">商户后台</a></li>');
		document.write('</ul>');
		function AutoScroll(obj){
			$(obj).find("ul:first").animate({
				marginTop:"-25px"
				},500,function(){
				$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
			});
		}
		$(document).ready(function(){
			setInterval('AutoScroll("#scrollDiv")',2000)
		});
		</script>
		</div>
		<style>
			.cp_list_info{ width:100%; height:160px; color:#fff; overflow:hidden;}
			.cp_list_info dl { width:94%; margin:10px 3% 0px 3%}
			.cp_list_info dl dd{ width:33%;float:left; height:85px; margin:0px; text-align:center; line-height:180%; font-size:15px;}
			#scrollDiv{width:252px; margin-left:20px; height:25px;line-height:25px;overflow:hidden}
			#scrollDiv li{height:25px;padding-left:10px;}
			#scrollDiv a{ color:#fff; font-size:14px;}
		</style>
		<div class="cp_list_info">
			<dl>
				<dd>产品/个<br>{$count_data['mall']}</dd>
				<dd>企业/个<br>{$count_data['company']}</dd>
				<dd>展会/个<br>{$count_data['exhibit']}</dd>
				<dd>咨询/个<br>{$count_data['know']}</dd>
				<dd>需求/个<br>{$count_data['buy']}</dd>
				<dd>方案/个<br>{$count_data['fn']}</dd>
				<div style="clear:both"></div>
			</dl>
		</div>
		<div id="scrollDiv">
			<div style="width:50px; margin-left:3%; height:30px; color:#fff;float:left; font-size:14px;">[公告]</div>
			<ul>
				{loop $announce_list $key $value}
				<li><a href="{$value['linkurl']}">{$value['title']}</a></li>
				{/loop}
			</ul>
		</div>
	</div>
</div>
<div class="c_b"></div>
</div>
</div>
</div>
<div class="m" >
	<div class="im0mall" style="width:1200px;position: inherit;">
		<div id="itrade"style="border-bottom:1px solid #DDDDDD; width:1200px;">
		<div class="tab-head" >
		<ul id="trade-h" style="border:none;">
			<li id="trade-h-1" onmouseover="Tb(this);" style="padding:0px 20px;" class="on"><span>推荐</span></li>
			<li id="trade-h-2" onmouseover="Tb(this);" style="padding:0px 20px;"><span>上新</span></li>
			<li id="trade-h-3" onmouseover="Tb(this);" style="padding:0px 20px;"><span>人气</span></li>
			<li id="trade-h-4" onmouseover="Tb(this);" style="padding:0px 20px;"><span>热销</span></li>
			<li id="trade-h-5" onmouseover="Tb(this);" style="padding:0px 20px;"><span>热评</span></li>
		</ul>
		</div>
		<div id="trade-b-1" class="im0t-mall" style="display:;float: left;margin-left:-10px;"><!--{tag("moduleid=$moduleid&condition=status=3 and level>0&areaid=$cityid&pagesize=10&order=".$MOD[order]."&width=100&height=100&template=thumb-mall&target=_blank")}--></div>
		<div id="trade-b-2" class="im0t-mall" style="display:none;float: left;margin-left:-10px;"><!--{tag("moduleid=$moduleid&condition=status=3&areaid=$cityid&pagesize=10&order=addtime desc&width=100&height=100&template=thumb-mall&target=_blank")}--></div>
		<div id="trade-b-3" class="im0t-mall" style="display:none;float: left;margin-left:-10px;"><!--{tag("moduleid=$moduleid&condition=status=3&areaid=$cityid&pagesize=10&order=hits desc&width=100&height=100&template=thumb-mall&target=_blank")}--></div>
		<div id="trade-b-4" class="im0t-mall" style="display:none;float: left;margin-left:-10px;"><!--{tag("moduleid=$moduleid&condition=status=3&areaid=$cityid&pagesize=10&order=orders desc&width=100&height=100&template=thumb-mall&target=_blank")}--></div>
		<div id="trade-b-5" class="im0t-mall" style="display:none;float: left;margin-left:-10px;"><!--{tag("moduleid=$moduleid&condition=status=3&areaid=$cityid&pagesize=10&order=comments desc&width=100&height=100&template=thumb-mall&target=_blank")}--></div>
		</div>
	</div>
</div>
<div class="m">
	<div class="b20"></div>
	{loop $c0 $k0 $v0}
	{if $v0[child]}
	<div class="im-b im-b-mall">
		<div class="im-l">
			<a href="{$MOD[linkurl]}{$v0[linkurl]}"><p>{$v0[catname]}</p></a>
			{php $child = get_maincat($v0[catid], $moduleid, 1);}
			<ul>
			{loop $child $i $c}
			<li><a href="{$MOD[linkurl]}{$c[linkurl]}" target="_blank">{set_style($c[catname], $c[style])}</a></li>
			{/loop}
			</ul>
		</div>
		<div class="im-r im-r-mall">
		<!--{php $tags=tag("moduleid=$mid&condition=status=3 and level>0&catid=".$v0[catid]."&areaid=$cityid&order=addtime desc&lazy=$lazy&pagesize=".$DT[page_mall]."&template=null");}-->
		{loop $tags $i $t}
		<div>
		<a href="{$t[linkurl]}" target="_blank"><img src="{$t[thumb]}" width="134" height="134" alt=""/></a>
		<b>{if $t[price]>0}{$DT[money_sign]}{$t[price]}{else}面议{/if}</b>
		<p><a href="{$t[linkurl]}" title="{$t[alt]}" target="_blank">{$t[title]}</a></p>
		</div>
		{/loop}
		</div>
	</div>
	{/if}
	{/loop}
</div>
<script type="text/javascript" src="{DT_STATIC}file/script/index.js"></script>
{template 'footer'}